I don't have a lot of experience with windows services..
However, have you tried using environment variables like described here
https://serverfault.com/a/1103091